﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SimpleFMMatrix.DataStructures;

namespace SimpleFMMatrix.ViewModel
{
    public class OperatorOutputLevelVM : IntValuedDependencyObject
    {
        internal OperatorOutputLevelVM(FMMatrix matrix, int i, Action updatePreview)
            : base(matrix.OutputLevels[i], (o, n) =>
            {
                matrix.OutputLevels[i] = n;
                updatePreview();
            })
        {
        }
    }
}
